package team.first.moiveapiv1.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author: HAPPY 
 * @Project_name: project
 * @Package_name: team.first.moiveapiv1.domain
 * @Date: 2021/11/25 11:01
 * @Description：
 */
@ApiModel(value="user")
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "user")
public class User implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="用户编号", example = "1001")
    private Integer id;

    @TableField(value = "nickname")
    @ApiModelProperty(value="昵称", example = "冷芝士鸭")
    private String nickname;

    @TableField(value = "email")
    @ApiModelProperty(value="邮箱", example = "12345@qq.com")
    private String email;

    @TableField(value = "password")
    @ApiModelProperty(value="密码", example = "123456")
    private String password;

    @TableField(value = "avatar")
    @ApiModelProperty(value="头像", example = "1001.jpg")
    private String avatar;

    @TableField(value = "username")
    @ApiModelProperty(value="姓名", example = "张三")
    private String username;

    private static final long serialVersionUID = 1L;
}